<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'input_hotel.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
   <form action="<c:url value="/RoomMgr"/>" method="post" >
       <input type="hidden" name="act" value="update"/>
       <input type="hidden" name="roomId" value="${room.roomId}"/>
       <input type="hidden" name="hotelId" value="${room.hotel.hotelId}"/>
       <div class="headTitle">&gt;&gt;分店[${room.hotel.hotelName}（${room.roomNumber})]信息修改</div>
       <div class="groupline" style="margin-bottom:5px">房间基本信息</div>
       <div>
	        <ul>
	          <li>
	            <span class="lableFont">分店名称:</span>
                              ${room.hotel.hotelName} 
                </select>
	          </li>
	          <li>
	            <span class="lableFont">房间编号:</span>
	            <input type="text" class="text" name="roomnumber" size="80" value="${room.roomNumber}"/>
	          <li>
	            <span class="lableFont">房间类型:</span>
	            <select name="roomtype">
                           <option value="0">--请选择类型--</option>
                           <option value="普单人间" <c:if test="${room.roomType=='普单人间'}">selected</c:if>>普单人间</option>
                           <option value="普双人间" <c:if test="${room.roomType=='普双人间'}">selected</c:if>>普双人间</option>
                           <option value="三人间" <c:if test="${room.roomType=='三人间'}">selected</c:if>>三人间</option>
                           <option value="商务套房" <c:if test="${room.roomType=='商务套房'}">selected</c:if>>商务套房</option>
                           <option value="贵宾套房" <c:if test="${room.roomType=='贵宾套房'}">selected</c:if>>贵宾套房</option>
                      </select>
	          </li>
	          <li>
	            <span class="lableFont">房间设施:</span>
	            <c:forEach var="loadfacility" items="${rs.loadfacility}">
                    <input name="roomfacility" type="checkbox" id="roomfacility" value="${loadfacility}" <c:forEach var="facility" items="${room.roomFacility}"><c:if test="${facility==loadfacility}">checked</c:if></c:forEach>/>${loadfacility}
                    
                    </c:forEach>
	          </li>
	          <li>
	            <span class="lableFont">房间状态:</span>
                     <select name="roomstatus">
                           <option value="普未入住" <c:if test="${room.roomStatus=='普未入住'}">selected</c:if>>未入住</option>
                           <option value="有住客" <c:if test="${room.roomStatus=='有住客'}">selected</c:if>>有住客</option>
                           <option value="已预订" <c:if test="${room.roomStatus=='已预订'}">selected</c:if>>已预订</option>
                           <option value="保洁中" <c:if test="${room.roomStatus=='保洁中'}">selected</c:if>>保洁中</option>
                           <option value="已退房未保洁" <c:if test="${room.roomStatus=='已退房未保洁'}">selected</c:if>>已退房未保洁</option>
                           <option value="维修中" <c:if test="${room.roomStatus=='维修中'}">selected</c:if>>维修中</option>
                      </select>
	          </li>
	          <li>
	            <span class="lableFont" style="vertical-align:middle">备注说明:</span>
	            <textarea name="roomdesc" class="text" rows="15" cols="100">${room.roomDesc}</textarea>
	          </li>
	        </ul> 
          </div>
         
	      <div class="submitDiv">
	        <input type="submit" value="房间登记"/>
	        <input type="submit" value="取消重写"/>
	      </div>
	           
	           
    </form>
    
    <c:if test="${not empty errMsg}">
	    <script type="text/javascript">
	       alert("${errMsg}");
	    </script>
    </c:if>
  </body>
</html>
